package cn.shop.merchant.model.user;

import java.io.Serializable;

/**
 * 用于存放在session中的user对象
 *
 * @author jzw
 * @since 2021-11-02 13:31
 */
public class UserInfoForSession implements Serializable {

	private static final long serialVersionUID = 7418572188034067169L;

	private Long id;

	private String account;

	private String name;

	public UserInfoForSession() {
	}

	public UserInfoForSession(Long id, String account, String name) {
		this.id = id;
		this.account = account;
		this.name = name;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Override
	public String toString() {
		return "UserInfoForSession{" +
				"id=" + id +
				", account='" + account + '\'' +
				", name='" + name + '\'' +
				'}';
	}
}
